﻿<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html lang="ja"> 
 
<!-- ==== document header ==== --> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
<meta http-equiv="Content-Style-Type" content="text/css"> 
<meta http-equiv="Content-Script-Type" content="text/javascript"> 
<title>Active IDs</title> 
</head> 
<body>
<?php
  $db = mysql_connect("mysql513.in.shared-server.net:16033", "JRtu434", "qvoiceDB1");
  mysql_select_db("JRtu434", $db);
  mysql_query("set SQL_BIG_Selects=1");
  $msg = mysql_query("Select Distinct monID,count(*) as count from testredirect group by monID order by count DESC");
  echo "<table border=\".5\">";
  while($record = mysql_fetch_array($msg))
  {
     echo "<tr><td>" . $record[0] . "</td><td>" . $record[1] . "</td></tr>";
  }
  echo "</table>";
  $ip=$_SERVER['REMOTE_ADDR'];
 echo "You are connecting from: " .$ip;
?>
</body>
</html>